<?php
/**
 * QQAS - share your knowledge to the world!
 *
 * @author		xiaochong0302 <xiaochong0302@gmail.com>
 * @copyright	Copyright (c) 2011, Koogua Studio.
 * @license		http://www.qqas.org/user_guide/license.html
 * @link		http://www.qqas.org
 * @since		Version 1.0
 * @filesource
 */


class HelpTipsWidget extends Widget
{

    public function render($data)
    {
        $types = array('earn_points','extend_question','choose_answer');
        $key = array_rand($types);
        $data['type'] = $types[$key];

        $tplFile = TEMPLATE_PATH .'/Home/Widget_helpTips.html';
        $content = $this->renderFile($tplFile, $data);
        return $content;
    }

}

/* End of file HelpTipsWidget.class.php */
/* Location: ./App/Lib/Widget/HelpTipsWidget.class.php */
